import request from "@/utils/request.ts";
import {ICommonResponse, ISqlUpdate} from "@/global.ts";

export const changeName = (data: { email: string, name: string }): Promise<ICommonResponse<ISqlUpdate>> => {
    return request({
        url: '/user/change/name',
        method: 'POST',
        data
    })
}